package com.rightrule.rule.response;

import com.rightrule.rule.dto.DecisionRuleDTO;
import com.rightrule.rule.dto.DecisionRuleWaterDTO;
import lombok.Data;

import java.util.List;

@Data
public class NodeExecutionResponse extends BaseExecutionResponse {

    // 执行规则
    protected DecisionRuleDTO execRule;

    /**
     * 分支到下一个节点的节点下标（分支节点结果专用）
     */
    protected Integer nextNodeIndex;

    /**
     * 命中规则列表
     */
    protected List<DecisionRuleDTO> hitRules;


    /**
     * 规则决策流水
     */
    protected List<DecisionRuleWaterDTO> ruleExeWaters;


    @Override
    public String toString() {
        return "NodeExecutionResponse{" +
                "executeStaus='" + executeStaus + '\'' +
                ", isHit=" + isHit +
                ", output=" + output +
                ", input=" + input +
                '}';
    }
}
